package com.windoent.yugioh.bean;

import java.util.List;

/**
 * author : robert
 * date   : 2021/7/20 10:30
 * desc   :
 */
public class GameManagerListBean {
    /**
     * code : 200
     * data : {"count":3,"res":[{"id":57,"statusId":8,"name":"MUNU","address":"上海市 上海市 普陀区 臣风大厦","addressPosition":"{\"latitude\":\"31.228806\",\"longitude\":\"121.379402\"}","type":1,"startAt":"2021-07-14 16:00","role":"player","startAtTimestamp":1626278430,"bottom":{"type":1,"title":{"text":"","signUpTotal":0,"alreadySignedUp":0,"countdown":0}}},{"id":58,"statusId":2,"name":"典韦8号","address":"北京市 北京市 东城区 二条街","addressPosition":"{\"longitude\":\"116.418757\",\"latitude\":\"39.917544\"}","type":2,"startAt":"2021-07-14 08:13","role":"player","startAtTimestamp":1626250380,"bottom":{"type":1,"title":{"text":"报名中","signUpTotal":0,"alreadySignedUp":0,"countdown":0}}},{"id":59,"statusId":8,"name":"典韦9号","address":"北京市 北京市 东城区 三条街","addressPosition":"{\"longitude\":\"116.418757\",\"latitude\":\"39.917544\"}","type":1,"startAt":"2021-07-14 08:24","role":"player","startAtTimestamp":1626251040,"bottom":{"type":1,"title":{"text":"报名中","signUpTotal":0,"alreadySignedUp":0,"countdown":0}}}]}
     * msg : 查询成功
     */

    private int code;
    private DataBean data;
    private String msg;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public DataBean getData() {
        return data;
    }

    public void setData(DataBean data) {
        this.data = data;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public static class DataBean {
        /**
         * count : 3
         * res : [{"id":57,"statusId":8,"name":"MUNU","address":"上海市 上海市 普陀区 臣风大厦","addressPosition":"{\"latitude\":\"31.228806\",\"longitude\":\"121.379402\"}","type":1,"startAt":"2021-07-14 16:00","role":"player","startAtTimestamp":1626278430,"bottom":{"type":1,"title":{"text":"","signUpTotal":0,"alreadySignedUp":0,"countdown":0}}},{"id":58,"statusId":2,"name":"典韦8号","address":"北京市 北京市 东城区 二条街","addressPosition":"{\"longitude\":\"116.418757\",\"latitude\":\"39.917544\"}","type":2,"startAt":"2021-07-14 08:13","role":"player","startAtTimestamp":1626250380,"bottom":{"type":1,"title":{"text":"报名中","signUpTotal":0,"alreadySignedUp":0,"countdown":0}}},{"id":59,"statusId":8,"name":"典韦9号","address":"北京市 北京市 东城区 三条街","addressPosition":"{\"longitude\":\"116.418757\",\"latitude\":\"39.917544\"}","type":1,"startAt":"2021-07-14 08:24","role":"player","startAtTimestamp":1626251040,"bottom":{"type":1,"title":{"text":"报名中","signUpTotal":0,"alreadySignedUp":0,"countdown":0}}}]
         */

        private int count;
        private List<ResBean> res;

        public int getCount() {
            return count;
        }

        public void setCount(int count) {
            this.count = count;
        }

        public List<ResBean> getRes() {
            return res;
        }

        public void setRes(List<ResBean> res) {
            this.res = res;
        }

        public static class ResBean {
            /**
             * id : 57
             * statusId : 8
             * name : MUNU
             * address : 上海市 上海市 普陀区 臣风大厦
             * addressPosition : {"latitude":"31.228806","longitude":"121.379402"}
             * type : 1
             * startAt : 2021-07-14 16:00
             * role : player
             * startAtTimestamp : 1626278430
             * bottom : {"type":1,"title":{"text":"","signUpTotal":0,"alreadySignedUp":0,"countdown":0}}
             */

            private int id;
            private int statusId;
            private String name;
            private String address;
            private String addressPosition;
            private int type;
            private String startAt;
            private String role;
            private int startAtTimestamp;
            private BottomBean bottom;
            private int rule;

            public int getRule() {
                return rule;
            }

            public void setRule(int rule) {
                this.rule = rule;
            }

            public int getId() {
                return id;
            }

            public void setId(int id) {
                this.id = id;
            }

            public int getStatusId() {
                return statusId;
            }

            public void setStatusId(int statusId) {
                this.statusId = statusId;
            }

            public String getName() {
                return name;
            }

            public void setName(String name) {
                this.name = name;
            }

            public String getAddress() {
                return address;
            }

            public void setAddress(String address) {
                this.address = address;
            }

            public String getAddressPosition() {
                return addressPosition;
            }

            public void setAddressPosition(String addressPosition) {
                this.addressPosition = addressPosition;
            }

            public int getType() {
                return type;
            }

            public void setType(int type) {
                this.type = type;
            }

            public String getStartAt() {
                return startAt;
            }

            public void setStartAt(String startAt) {
                this.startAt = startAt;
            }

            public String getRole() {
                return role;
            }

            public void setRole(String role) {
                this.role = role;
            }

            public int getStartAtTimestamp() {
                return startAtTimestamp;
            }

            public void setStartAtTimestamp(int startAtTimestamp) {
                this.startAtTimestamp = startAtTimestamp;
            }

            public BottomBean getBottom() {
                return bottom;
            }

            public void setBottom(BottomBean bottom) {
                this.bottom = bottom;
            }

            public static class BottomBean {
                /**
                 * type : 1
                 * title : {"text":"","signUpTotal":0,"alreadySignedUp":0,"countdown":0}
                 */

                private int type;
                private int action;
                private TitleBean title;

                public int getAction() {
                    return action;
                }

                public void setAction(int action) {
                    this.action = action;
                }

                public int getType() {
                    return type;
                }

                public void setType(int type) {
                    this.type = type;
                }

                public TitleBean getTitle() {
                    return title;
                }

                public void setTitle(TitleBean title) {
                    this.title = title;
                }

                public static class TitleBean {
                    /**
                     * text :
                     * signUpTotal : 0
                     * alreadySignedUp : 0
                     * countdown : 0
                     */

                    private String text;
                    private int signUpTotal;
                    private int alreadySignedUp;
                    private int countdown;
                    private boolean isReserve;

                    public boolean isReserve() {
                        return isReserve;
                    }

                    public void setReserve(boolean reserve) {
                        isReserve = reserve;
                    }

                    public boolean isFirst() {
                        return first;
                    }

                    public void setFirst(boolean first) {
                        this.first = first;
                    }

                    private boolean first = true;

                    public String getText() {
                        return text;
                    }

                    public void setText(String text) {
                        this.text = text;
                    }

                    public int getSignUpTotal() {
                        return signUpTotal;
                    }

                    public void setSignUpTotal(int signUpTotal) {
                        this.signUpTotal = signUpTotal;
                    }

                    public int getAlreadySignedUp() {
                        return alreadySignedUp;
                    }

                    public void setAlreadySignedUp(int alreadySignedUp) {
                        this.alreadySignedUp = alreadySignedUp;
                    }

                    public int getCountdown() {
                        return countdown;
                    }

                    public void setCountdown(int countdown) {
                        this.countdown = countdown;
                    }
                }
            }
        }
    }
}
